package com.yazi.mxz.gather.repository;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.yazi.mxz.gather.entity.repository.Product;


public interface ProductRepository extends MongoRepository<Product, String> {

	List<Product> findByPicIsNotNull(Pageable page);
	Integer countByPicIsNotNull();
	List<Product> findBySource(String source, Pageable page);
}
